home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / chartfx.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  18.7 KB  |  369 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'ChartFX.pas' rev: 3.00
  6.  
  7. #ifndef ChartFXHPP
  8. #define ChartFXHPP
  9. #include <Menus.hpp>
  10. #include <Controls.hpp>
  11. #include <OleCtrls.hpp>
  12. #include <Graphics.hpp>
  13. #include <Classes.hpp>
  14. #include <OleCtl.hpp>
  15. #include <OLE2.hpp>
  16. #include <SysInit.hpp>
  17. #include <System.hpp>
  18.  
  19. //-- user supplied -----------------------------------------------------------
  20.  
  21. namespace Chartfx
  22. {
  23. //-- type declarations -------------------------------------------------------
  24. typedef void __fastcall (__closure *TChartFXLButtonDblClk)(System::TObject* Sender, short &X, short 
  25.     &Y, short &nSerie, short &nPoint, short &nRes);
  26.  
  27. typedef void __fastcall (__closure *TChartFXRButtonDown)(System::TObject* Sender, short &X, short &Y
  28.     , short &nSerie, short &nPoint, short &nRes);
  29.  
  30. typedef void __fastcall (__closure *TChartFXChangeValue)(System::TObject* Sender, double &dValue, short 
  31.     &nSerie, short &nPoint, short &nRes);
  32.  
  33. typedef void __fastcall (__closure *TChartFXChangeString)(System::TObject* Sender, short &nType, short 
  34.     &nIndex, short &nRes);
  35.  
  36. typedef void __fastcall (__closure *TChartFXChangeColor)(System::TObject* Sender, short &nType, short 
  37.     &nIndex, short &nRes);
  38.  
  39. typedef void __fastcall (__closure *TChartFXChangePalette)(System::TObject* Sender, short &nIndex, short 
  40.     &nRes);
  41.  
  42. typedef void __fastcall (__closure *TChartFXChangeFont)(System::TObject* Sender, short &nIndex, short 
  43.     &nRes);
  44.  
  45. typedef void __fastcall (__closure *TChartFXChangePattern)(System::TObject* Sender, short &nType, short 
  46.     &nIndex, short &nRes);
  47.  
  48. typedef void __fastcall (__closure *TChartFXChangePattPal)(System::TObject* Sender, short &nIndex, short 
  49.     &nRes);
  50.  
  51. typedef void __fastcall (__closure *TChartFXMenu)(System::TObject* Sender, short &wParam, short &nSerie
  52.     , short &nPoint, short &nRes);
  53.  
  54. typedef void __fastcall (__closure *TChartFXChangeType)(System::TObject* Sender, short &nType, short 
  55.     &nRes);
  56.  
  57. typedef void __fastcall (__closure *TChartFXUserScroll)(System::TObject* Sender, int wScrollMsg, int 
  58.     wScrollParam, short &nRes);
  59.  
  60. typedef void __fastcall (__closure *TChartFXGetLegend)(System::TObject* Sender, short nType, short &
  61.     nRes);
  62.  
  63. class DELPHICLASS TChartFX;
  64. class PASCALIMPLEMENTATION TChartFX : public Olectrls::TOleControl 
  65. {
  66.     typedef Olectrls::TOleControl inherited;
  67.     
  68. private:
  69.     TChartFXLButtonDblClk FOnLButtonDblClk;
  70.     TChartFXRButtonDown FOnRButtonDown;
  71.     TChartFXChangeValue FOnChangeValue;
  72.     TChartFXChangeString FOnChangeString;
  73.     TChartFXChangeColor FOnChangeColor;
  74.     Classes::TNotifyEvent FOnDestroy;
  75.     Classes::TNotifyEvent FOnReadFile;
  76.     TChartFXChangePalette FOnChangePalette;
  77.     TChartFXChangeFont FOnChangeFont;
  78.     Classes::TNotifyEvent FOnReadTemplate;
  79.     TChartFXChangePattern FOnChangePattern;
  80.     TChartFXChangePattPal FOnChangePattPal;
  81.     TChartFXMenu FOnMenu;
  82.     TChartFXChangeType FOnChangeType;
  83.     TChartFXUserScroll FOnUserScroll;
  84.     TChartFXGetLegend FOnGetLegend;
  85.     double __stdcall Get_Value(short index);
  86.     void __stdcall Set_Value(short index, double Value);
  87.     double __stdcall Get_XValue(short index);
  88.     void __stdcall Set_XValue(short index, double Value);
  89.     double __stdcall Get_IniValue(short index);
  90.     void __stdcall Set_IniValue(short index, double Value);
  91.     double __stdcall Get_Const_(short index);
  92.     void __stdcall Set_Const_(short index, double Value);
  93.     Graphics::TColor __stdcall Get_Color(short index);
  94.     void __stdcall Set_Color(short index, Graphics::TColor Value);
  95.     Graphics::TColor __stdcall Get_BkColor(short index);
  96.     void __stdcall Set_BkColor(short index, Graphics::TColor Value);
  97.     double __stdcall Get_Adm(short index);
  98.     void __stdcall Set_Adm(short index, double Value);
  99.     short __stdcall Get_Pattern(short index);
  100.     void __stdcall Set_Pattern(short index, short Value);
  101.     int __stdcall Get_Fonts(short index);
  102.     void __stdcall Set_Fonts(short index, int Value);
  103.     System::AnsiString __stdcall Get_Title(short index);
  104.     void __stdcall Set_Title(short index, const System::AnsiString Value);
  105.     System::AnsiString __stdcall Get_Legend(short index);
  106.     void __stdcall Set_Legend(short index, const System::AnsiString Value);
  107.     System::AnsiString __stdcall Get_SerLeg(short index);
  108.     void __stdcall Set_SerLeg(short index, const System::AnsiString Value);
  109.     System::AnsiString __stdcall Get_KeyLeg(short index);
  110.     void __stdcall Set_KeyLeg(short index, const System::AnsiString Value);
  111.     System::AnsiString __stdcall Get_FixLeg(short index);
  112.     void __stdcall Set_FixLeg(short index, const System::AnsiString Value);
  113.     System::AnsiString __stdcall Get_YLeg(short index);
  114.     void __stdcall Set_YLeg(short index, const System::AnsiString Value);
  115.     System::AnsiString __stdcall Get_KeySer(short index);
  116.     void __stdcall Set_KeySer(short index, const System::AnsiString Value);
  117.     System::AnsiString __stdcall Get_StatusText(short index);
  118.     void __stdcall Set_StatusText(short index, const System::AnsiString Value);
  119.     Graphics::TColor __stdcall Get_RGBFont(short index);
  120.     void __stdcall Set_RGBFont(short index, Graphics::TColor Value);
  121.     short __stdcall Get_HFont(short index);
  122.     void __stdcall Set_HFont(short index, short Value);
  123.     short __stdcall Get_ItemWidth(short index);
  124.     void __stdcall Set_ItemWidth(short index, short Value);
  125.     short __stdcall Get_ItemStyle(short index);
  126.     void __stdcall Set_ItemStyle(short index, short Value);
  127.     Graphics::TColor __stdcall Get_ItemColor(short index);
  128.     void __stdcall Set_ItemColor(short index, Graphics::TColor Value);
  129.     short __stdcall Get_DecimalsNum(short index);
  130.     void __stdcall Set_DecimalsNum(short index, short Value);
  131.     
  132. protected:
  133.     virtual void __fastcall InitControlData(void);
  134.     
  135. public:
  136.     int __stdcall OpenDataEx(short nType, int n1, int n2);
  137.     Word __stdcall CloseData(short nType);
  138.     int __stdcall DblClk(short nType, int lExtra);
  139.     int __stdcall RigClk(short nType, int lExtra);
  140.     int __stdcall Status(short nItems, int lpStatus);
  141.     int __stdcall ShowDialog(short nDialog, int lExtra);
  142.     int __stdcall PrintIt(void);
  143.     HIDESBASE int __stdcall Scroll(int wParam, int lParam);
  144.     int __stdcall SetStatusItem(short index, Word bText, short nID, Word bFrame, short nWidth, short nMin
  145.         , short nDesp, int dwStyle);
  146.     int __stdcall Paint(int hDC, short nLeft, short nTop, short nRight, short nBottom, short wAction, int 
  147.         lps);
  148.     int __stdcall SetStripe(short index, double dMin, double dMax, Graphics::TColor rgb);
  149.     int __stdcall Language(const System::AnsiString sResource);
  150.     int __stdcall ExportFile(const System::AnsiString lpszNewValue);
  151.     int __stdcall ImportFile(const System::AnsiString lpszNewValue);
  152.     int __stdcall WriteTemplate(const System::AnsiString lpszNewValue);
  153.     int __stdcall ReadTemplate(const System::AnsiString lpszNewValue);
  154.     int __stdcall CopyData(void);
  155.     int __stdcall CopyBitmap(void);
  156.     HIDESBASE void __stdcall Refresh(void);
  157.     void __stdcall AboutBox(void);
  158.     __property double Value[short index] = {read=Get_Value, write=Set_Value};
  159.     __property double XValue[short index] = {read=Get_XValue, write=Set_XValue};
  160.     __property double IniValue[short index] = {read=Get_IniValue, write=Set_IniValue};
  161.     __property double Const_[short index] = {read=Get_Const_, write=Set_Const_};
  162.     __property Graphics::TColor Color[short index] = {read=Get_Color, write=Set_Color};
  163.     __property Graphics::TColor BkColor[short index] = {read=Get_BkColor, write=Set_BkColor};
  164.     __property double Adm[short index] = {read=Get_Adm, write=Set_Adm};
  165.     __property short Pattern[short index] = {read=Get_Pattern, write=Set_Pattern};
  166.     __property int Fonts[short index] = {read=Get_Fonts, write=Set_Fonts};
  167.     __property System::AnsiString Title[short index] = {read=Get_Title, write=Set_Title};
  168.     __property System::AnsiString Legend[short index] = {read=Get_Legend, write=Set_Legend};
  169.     __property System::AnsiString SerLeg[short index] = {read=Get_SerLeg, write=Set_SerLeg};
  170.     __property System::AnsiString KeyLeg[short index] = {read=Get_KeyLeg, write=Set_KeyLeg};
  171.     __property System::AnsiString FixLeg[short index] = {read=Get_FixLeg, write=Set_FixLeg};
  172.     __property System::AnsiString YLeg[short index] = {read=Get_YLeg, write=Set_YLeg};
  173.     __property System::AnsiString KeySer[short index] = {read=Get_KeySer, write=Set_KeySer};
  174.     __property System::AnsiString StatusText[short index] = {read=Get_StatusText, write=Set_StatusText}
  175.         ;
  176.     __property Graphics::TColor RGBFont[short index] = {read=Get_RGBFont, write=Set_RGBFont};
  177.     __property short HFont[short index] = {read=Get_HFont, write=Set_HFont};
  178.     __property short ItemWidth[short index] = {read=Get_ItemWidth, write=Set_ItemWidth};
  179.     __property short ItemStyle[short index] = {read=Get_ItemStyle, write=Set_ItemStyle};
  180.     __property Graphics::TColor ItemColor[short index] = {read=Get_ItemColor, write=Set_ItemColor};
  181.     __property short DecimalsNum[short index] = {read=Get_DecimalsNum, write=Set_DecimalsNum};
  182.     
  183. __published:
  184.     __property TabStop ;
  185.     __property DragCursor ;
  186.     __property DragMode ;
  187.     __property ParentShowHint ;
  188.     __property PopupMenu ;
  189.     __property ShowHint ;
  190.     __property TabOrder ;
  191.     __property Visible ;
  192.     __property OnDragDrop ;
  193.     __property OnDragOver ;
  194.     __property OnEndDrag ;
  195.     __property OnEnter ;
  196.     __property OnExit ;
  197.     __property OnStartDrag ;
  198.     __property short DesignDraw = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=4, 
  199.         nodefault};
  200.     __property short ThisSerie = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=1, nodefault
  201.         };
  202.     __property short ThisPoint = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=2, nodefault
  203.         };
  204.     __property Word AutoInvalidate = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=3, 
  205.         nodefault};
  206.     __property int Type_ = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=5, nodefault
  207.         };
  208.     __property int Style = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=6, nodefault
  209.         };
  210.     __property short NSeries = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=7, nodefault
  211.         };
  212.     __property short NValues = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=8, nodefault
  213.         };
  214.     __property Graphics::TColor ThisColor = {read=GetColorProp, write=SetColorProp, stored=false, index=9
  215.         , nodefault};
  216.     __property Graphics::TColor ThisBkColor = {read=GetColorProp, write=SetColorProp, stored=false, index=10
  217.         , nodefault};
  218.     __property short LeftGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=11, nodefault
  219.         };
  220.     __property short RightGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=12, nodefault
  221.         };
  222.     __property short TopGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=13, nodefault
  223.         };
  224.     __property short BottomGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=14, 
  225.         nodefault};
  226.     __property short Decimals = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=15, nodefault
  227.         };
  228.     __property short PointType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=16, 
  229.         nodefault};
  230.     __property short Scheme = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=17, nodefault
  231.         };
  232.     __property short Stacked = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=18, nodefault
  233.         };
  234.     __property short Grid = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=19, nodefault
  235.         };
  236.     __property short WallWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=20, 
  237.         nodefault};
  238.     __property short BarHorzGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=21, 
  239.         nodefault};
  240.     __property Word View3D = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=22, nodefault
  241.         };
  242.     __property int Angles3D = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=23, nodefault
  243.         };
  244.     __property short PixFactor = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=24, 
  245.         nodefault};
  246.     __property short LineWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=25, 
  247.         nodefault};
  248.     __property short LineStyle = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=26, 
  249.         nodefault};
  250.     __property Graphics::TColor LineColor = {read=GetColorProp, write=SetColorProp, stored=false, index=27
  251.         , nodefault};
  252.     __property Graphics::TColor LineBkColor = {read=GetColorProp, write=SetColorProp, stored=false, index=28
  253.         , nodefault};
  254.     __property short FixedWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=29, 
  255.         nodefault};
  256.     __property short FixedStyle = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=30, 
  257.         nodefault};
  258.     __property Graphics::TColor FixedColor = {read=GetColorProp, write=SetColorProp, stored=false, index=31
  259.         , nodefault};
  260.     __property Graphics::TColor FixedBkColor = {read=GetColorProp, write=SetColorProp, stored=false, index=32
  261.         , nodefault};
  262.     __property short FixedGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=33, nodefault
  263.         };
  264.     __property Graphics::TColor RGBBarHorz = {read=GetColorProp, write=SetColorProp, stored=false, index=34
  265.         , nodefault};
  266.     __property Graphics::TColor RGBBk = {read=GetColorProp, write=SetColorProp, stored=false, index=35, 
  267.         nodefault};
  268.     __property Graphics::TColor RGB2DBk = {read=GetColorProp, write=SetColorProp, stored=false, index=36
  269.         , nodefault};
  270.     __property Graphics::TColor RGB3DBk = {read=GetColorProp, write=SetColorProp, stored=false, index=37
  271.         , nodefault};
  272.     __property Word ShowStatus = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=38, nodefault
  273.         };
  274.     __property System::AnsiString HText = {read=GetStringProp, write=SetStringProp, stored=false, index=39
  275.         };
  276.     __property short ChartStatus = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=40
  277.         , nodefault};
  278.     __property short Edit = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=41, nodefault
  279.         };
  280.     __property short ChartType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=42, 
  281.         nodefault};
  282.     __property Word Chart3D = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=43, nodefault
  283.         };
  284.     __property Word ToolBar = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=44, nodefault
  285.         };
  286.     __property Word PaletteBar = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=45, nodefault
  287.         };
  288.     __property Word PatternBar = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=46, nodefault
  289.         };
  290.     __property int CustTool = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=47, nodefault
  291.         };
  292.     __property int ReturnValue = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=48, nodefault
  293.         };
  294.     __property Word AutoIncrement = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=49, 
  295.         nodefault};
  296.     __property double ThisValue = {read=GetDoubleProp, write=SetDoubleProp, stored=false, index=50};
  297.     __property short VertGridGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=51
  298.         , nodefault};
  299.     __property short XLegType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=52, nodefault
  300.         };
  301.     __property short ConstType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=53, 
  302.         nodefault};
  303.     __property System::Variant LeftFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=54
  304.         };
  305.     __property System::Variant RightFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=55
  306.         };
  307.     __property System::Variant TopFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=56
  308.         };
  309.     __property System::Variant BottomFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=57
  310.         };
  311.     __property System::Variant XLegFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=58
  312.         };
  313.     __property System::Variant YLegFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=59
  314.         };
  315.     __property System::Variant FixedFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=60
  316.         };
  317.     __property System::Variant LegendFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=61
  318.         };
  319.     __property short LegendWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=62
  320.         , nodefault};
  321.     __property Word Enabled = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=-514, nodefault
  322.         };
  323.     __property int hWnd = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=-515, nodefault
  324.         };
  325.     __property short BorderStyle = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=-504
  326.         , nodefault};
  327.     __property int hCtlWnd = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=63, nodefault
  328.         };
  329.     __property TChartFXLButtonDblClk OnLButtonDblClk = {read=FOnLButtonDblClk, write=FOnLButtonDblClk};
  330.         
  331.     __property TChartFXRButtonDown OnRButtonDown = {read=FOnRButtonDown, write=FOnRButtonDown};
  332.     __property TChartFXChangeValue OnChangeValue = {read=FOnChangeValue, write=FOnChangeValue};
  333.     __property TChartFXChangeString OnChangeString = {read=FOnChangeString, write=FOnChangeString};
  334.     __property TChartFXChangeColor OnChangeColor = {read=FOnChangeColor, write=FOnChangeColor};
  335.     __property Classes::TNotifyEvent OnDestroy = {read=FOnDestroy, write=FOnDestroy};
  336.     __property Classes::TNotifyEvent OnReadFile = {read=FOnReadFile, write=FOnReadFile};
  337.     __property TChartFXChangePalette OnChangePalette = {read=FOnChangePalette, write=FOnChangePalette};
  338.         
  339.     __property TChartFXChangeFont OnChangeFont = {read=FOnChangeFont, write=FOnChangeFont};
  340.     __property Classes::TNotifyEvent OnReadTemplate = {read=FOnReadTemplate, write=FOnReadTemplate};
  341.     __property TChartFXChangePattern OnChangePattern = {read=FOnChangePattern, write=FOnChangePattern};
  342.         
  343.     __property TChartFXChangePattPal OnChangePattPal = {read=FOnChangePattPal, write=FOnChangePattPal};
  344.         
  345.     __property TChartFXMenu OnMenu = {read=FOnMenu, write=FOnMenu};
  346.     __property TChartFXChangeType OnChangeType = {read=FOnChangeType, write=FOnChangeType};
  347.     __property TChartFXUserScroll OnUserScroll = {read=FOnUserScroll, write=FOnUserScroll};
  348.     __property TChartFXGetLegend OnGetLegend = {read=FOnGetLegend, write=FOnGetLegend};
  349. public:
  350.     /* TOleControl.Create */ __fastcall virtual TChartFX(Classes::TComponent* AOwner) : Olectrls::TOleControl(
  351.         AOwner) { }
  352.     /* TOleControl.Destroy */ __fastcall virtual ~TChartFX(void) { }
  353.     
  354. public:
  355.     /* TWinControl.CreateParented */ __fastcall TChartFX(HWND ParentWindow) : Olectrls::TOleControl(ParentWindow
  356.         ) { }
  357.     
  358. };
  359.  
  360. //-- var, const, procedure ---------------------------------------------------
  361. extern PACKAGE void __fastcall Register(void);
  362.  
  363. }    /* namespace Chartfx */
  364. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  365. using namespace Chartfx;
  366. #endif
  367. //-- end unit ----------------------------------------------------------------
  368. #endif    // ChartFX
  369.